package com.example.skytakeoutserver.repository

import com.example.skytakeoutserver.data.entity.Orders
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Mono

/**
 *
 */
@Repository
interface OrderRepository : ReactiveCrudRepository<Orders, Long> {

    fun countByStatus(status: Int): Mono<Int>

    fun findOneByNumber(outTradeNo: String): Mono<Orders>

}